//
//  RJWarningFather.m
//  AirQuality
//
//  Created by Po on 15/4/9.
//  Copyright (c) 2015年 Po. All rights reserved.
//

#import "RJWarningFather.h"

@implementation RJWarningFather

- (void)setData:(NSArray *)data
{
    if (_fatherDelegate) {
        [_fatherDelegate WarningFatherSetData:data];
    }
}

- (NSDictionary *)getData
{
    if (_fatherDelegate) {
        return [_fatherDelegate WarningFatherGetData];
    }
    return nil;
}

- (void)setUserData:(NSDictionary *)data
{
    if (_fatherDelegate) {
        [_fatherDelegate WarningFatherSetUserData:data];
    }
}

- (void)WarningFatherWillRemoveSelf
{
    [self endEditing:YES];
    if (_fatherDelegate) {
        [_fatherDelegate WarningFatherWillRemoveSelf];
    }
}

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    [[NSNotificationCenter defaultCenter] postNotificationName:@"touchScrollView" object:nil];
    [self endEditing:YES];
}
@end
